home *** CD-ROM | disk | FTP | other *** search
/ Best of Shareware / Best of PC Windows Shareware 1.0 - Wayzata Technology (7111) (1993).iso / mac / ZIPPED / WINDOWS / FILEUTIL / TLCFND11.ZIP / SETUPFND.BAT < prev    next >
DOS Batch File  |  1992-10-30  |  2KB  |  61 lines

  1. @echo off
  2. if "%1"=="" goto useage
  3. if "%2"=="" goto useage
  4. if "%3"=="" goto useage
  5. if exist %1\tlcfind.dll goto srcok
  6. echo Can not find source files
  7. goto done
  8.  
  9. :srcok
  10. md %2
  11. copy %1\tlcfnd.exe %2
  12. if  exist %2\tlcfnd.exe goto ok2
  13. echo Can not write to %2
  14. echo Create the destination directory and try again
  15. goto done
  16.  
  17. :ok2
  18. if exist c:\windows\vbrun100.dll goto VBrunok
  19. if exist %3\vbrun100.dll goto VBrunok
  20. if exist c:\windows\system\vbrun100.dll goto VBrunok
  21.  
  22. if  exist %1\vbrun100.dll copy %1\vbrun100.dll %3
  23. if exist %3\vbrun100.dll goto VBrunok
  24.  
  25. echo Your system does not appear to have the Microsoft Basic Run
  26. echo Time library, "VBRun100.DLL".
  27. echo This program will not operate without VBRun100.DLL.  It may
  28. echo be optained from Microsoft Bulletin board, Compuserve, or
  29. echo Software Engineering and Fabrication.  After you receive this 
  30. echo file, copy it to you System directory (probably C:\windows\system).
  31. goto done
  32. :VBRunOk
  33.  
  34. copy %1\tlcfind.dll %3
  35. if exist %3\tlcfind.dll goto dllok
  36. echo Can not copy to %3
  37. goto done
  38.  
  39. :dllok
  40. copy %1\tlcfind.hlp %3
  41. copy %1\read-fnd.txt %2
  42. copy %1\reg-fnd.txt %2
  43. echo TlcFnd version 1.1 is now installed
  44. echo Please remember to register this program if you are going to
  45. echo continue to use it.
  46. echo execute file named TLCFnd.exe
  47. goto done
  48.  
  49. :useage
  50. echo Type 
  51. echo       SetUpFnd.bat FromPath ToPath SystemPath
  52. echo
  53. echo for example 
  54. echo SetUpFnd c:\temp d:\utility c:\windows\system
  55. echo will cause the program to install from the c:\temp directory
  56. echo on to the D: drive using the UTILITY directory
  57. echo the windows system path is C:\WINDOWS\SYSTEM
  58. echo Note: no trailing slash after directory.
  59. :done
  60. pause Please press return to continue
  61.